<?php session_start() ?>
{include file="public/header.php"}
<div class="container">
      <!-- Example row of columns -->
      <div class="row">
      {foreach from=$res item=v}
        <div class="col-md-4">
        
          <h1>{$v['title']}</h1>
          <p>{$v['content']}</p>
          <span>{$v['zuozhe']}</span>-<span>{date('H-m-d Y:i:s',$v['time'])}</span>
          <a class="btn btn-default" href="index.php?m=home&c=index&a=update&id={$v['id']}" role="button"><span>修改</span></a>
          <a class="btn btn-default" href="index.php?m=home&c=index&a=del&id={$v['id']}" role="button"><span>删除</span></a>
          
        </div>
        {/foreach}

<hr>

      <footer>
        <p>&copy; 2016 Company, Inc.</p>
      </footer>
    <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
    </body>
</html>
















      
  